import unittest
import HTMLTestRunner


dir = "./"
suite = unittest.TestLoader().discover(dir, "test_*.py")

if __name__ == "__main__":
    fp = open("./report.html","wb")
    runner = HTMLTestRunner.HTMLTestRunner(
        stream= fp,
        title= "kongfz & BaiDuNews",
        description="孔夫子旧书网和百度新闻搜索测试描述"
    )
    runner.run(suite)
    fp.close()